package com.plian.system.entity.sys.warning;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_warning_message_config")
@ApiModel(value = "预警消息 配置主表")
public class WarningMessageConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "业务模块 code 167")
    private String businessModule;

    @ApiModelProperty(value = "业务单元")
    private String businessUnit;

    @ApiModelProperty(value = "预警事项")
    private String warningMatters;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "预警指标")
    private String warningIndex;

    @ApiModelProperty(value = "指标性质 1定性 2定量")
    private Integer indexProperties;

    @ApiModelProperty(value = "处理机制 1集团 2国资")
    private Integer processingMechanism;

    @ApiModelProperty(value = "创建日期")
    private Date createDate;

    @ApiModelProperty(value = "预警等级 1高 2中 3低")
    private Integer warningGrade;

    @ApiModelProperty(value = "预警频次 corn表达式")
    private String warningCorn;

    @ApiModelProperty(value = "有效开始时间")
    private Date effectiveStartTime;

    @ApiModelProperty(value = "有效结束时间")
    private Date effectiveEndTime;

    @ApiModelProperty(value = "通知方式 二进制转十进制存储 00 代表系统通知、浙政钉通知都没有勾选 10 代表系统通知勾选、浙政钉通知没有勾选")
    private Integer notificationMethod;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否生效 0否1是")
    private Integer isEffective;

}
